package com.woniu.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

/**
 * @author WenXin
 * @version 1.0
 * @description: TODO
 * @date 2022/8/24 11:51
 */
public class MyFirstServlet implements Controller {
    @Override
    public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg", "我的第一个web项目");
        modelAndView.setViewName("/index.jsp");
        return modelAndView;
    }
}
